package gameObject.item;

import main.Res;

public abstract class ItemSuit extends ItemEquipment{
	public final int bootAttack;
	public final int armor;
	public final int bootSpeed;
	public final int bootRange;
	protected ItemSuit(int id,String name,int cost,int armor,int att,int sp,int range) {
		super(id,name,cost);	
		sprite = Res.createArm1Sprite(getId()-5);
		this.armor = armor;
		this.bootAttack = att;
		this.bootSpeed = sp;
		this.bootRange = range;
		sprite.defineReferencePixel(15, 15);
	}
	public int getItemType(){
		return SUIT;
	}
	public String getInfoText() {
		String info = name + "\n$(0)" + cost + "\n";

		info += "$(9)" + armor + " ";
		
		if (bootAttack < 0) {
			info += "$(2)" + bootAttack + " ";
		} else if (bootAttack > 0) {
			info += "$(2)+" + bootAttack + " ";
		}
		
		if (bootSpeed < 0) {
			info += "$(4)" + bootSpeed + " ";
		} else if (bootSpeed > 0) {
			info += "$(4)+" + bootSpeed + " ";
		}
		
		if (bootRange < 0) {
			info += "$(5)" + bootRange + " ";
		} else if (bootRange > 0) {
			info += "$(5)+" + bootRange + " ";
		}
		return info;
	}
}
